package test.org.lcx.pipeline.bean;

import org.lcx.pipeline.Processor;
import org.lcx.pipeline.bean.PipelineExeption;
import org.lcx.pipeline.bean.PipelineResult;

/**
 * Created by luocheng on 2016/04/05.
 */
public class AddressProcessor implements Processor{

	@Override
	public int runProcess(Object pParam, PipelineResult pipelineResult)
			throws PipelineExeption {
		Object error = pipelineResult.getError("orderError");
		if(error == null){
			System.out.println("=================收货地址填写==============");
		}else{	
			System.out.println("=================下单异常==============");
		}	
//		throw new RuntimeException("ERROR");
		return 3;
	}


}
